package com.future.mayi.response;


import android.text.TextUtils;

import com.future.baselib.entity.BaseResponse;
import com.future.mayi.app.App;
import com.future.mayi.model.KeepCateModel;
import com.future.mayi.model.SpecModel;
import com.future.mayi.model.UserInfoModel;
import com.google.gson.reflect.TypeToken;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.List;


public class GoodsSpecResponse extends BaseResponse {


    public List<SpecModel> list;

    @Override
    public void parseInfo(String content) throws JSONException {
        if (!TextUtils.isEmpty(content)) {
            JSONObject object = new JSONObject(content);
            String sepc = object.optString("sepc");
            if (!TextUtils.isEmpty(sepc))
                list = App.getGson().fromJson(sepc, new TypeToken<List<SpecModel>>() {
                }.getType());
        }
    }
}
